<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!--
Not Automatically generated, changed!:
$Id: syntax_internal_functions_script.htm,v 1.2 2011/04/17 03:58:18 ianb1957 Exp $ 
-->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Syntax - Script functions</title>
<link rel="stylesheet" type="text/css" href="../avisynth.css">
</head>
<body>
<h2><span class="mw-headline">AviSynth Syntax - Script functions</span></h2>
<p>They provide AviSynth script information.</p>
<ul>
  <li><span style="color: rgb(0, 0, 128); font-weight: bold;">ScriptName</span> <span>&nbsp;</span>
    | <span>&nbsp;</span> v2.60 <span>&nbsp;</span> | <span>&nbsp;</span> <span style="color: purple; font-weight: bold;">ScriptName()</span></li>
</ul>
<dl>
  <dd>Returns the as entered path and filename of the loaded script as a string.</dd>
  <dd><i>Examples:</i></dd>
</dl>
<pre>name = ScriptName() # name = &quot;F:\Directory\Tmp\..\video.avs&quot;</pre>
<ul>
  <li><span style="color: rgb(0, 0, 128); font-weight: bold;">ScriptFile</span> <span>&nbsp;</span>
    | <span>&nbsp;</span> v2.60 <span>&nbsp;</span> | <span>&nbsp;</span> <span style="color: purple; font-weight: bold;">ScriptFile()</span></li>
</ul>
<dl>
  <dd>Returns the resolved filename of the loaded script as a string.</dd>
  <dd><i>Examples:</i></dd>
</dl>
<pre>file = ScriptFile() # name = &quot;video.avs&quot;</pre>
<ul>
  <li><span style="color: rgb(0, 0, 128); font-weight: bold;">ScriptDir</span> <span>&nbsp;</span>
    | <span>&nbsp;</span> v2.60 <span>&nbsp;</span> | <span>&nbsp;</span> <span style="color: purple; font-weight: bold;">ScriptDir()</span></li>
</ul>
<dl>
  <dd>Returns the resolved path of the loaded script as a string.</dd>
  <dd><i>Examples:</i></dd>
</dl>
<pre>folder = ScriptDir() # name = &quot;F:\Directory&quot;</pre>
<hr>
<p>Back to <a href="syntax_internal_functions.htm" title="Internal functions">Internal
functions</a>.</p>
<p><kbd>$Date: 2011/04/17 03:58:18 $</kbd></p>
</body>
</html>
